home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_pas
/
cddk9605.zip
/
TUTOR.ZIP
/
TUTOR1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1996-05-16
|
1KB
|
45 lines
PROGRAM Tutor1;
{$A+,B-,F+,I-,Q-,R-,S-,X+}
USES
Concerto, Scripts;
BEGIN
RegisterConcerto;
{ Concerto doors have a built-in script interpreter with a rich
library of commands and variables. The RegisterConcerto procedure
registers these with the interpreter. This is one of the first
things you should do when starting your door. }
Script('Init');
{ The next step is to run the initialization script. Drop to DOS
now and browse the file INIT.SCR. All of those commands and
variables were activated by RegisterConcerto.
The default extension is SCR. Since the ScriptDir variable has not
been assigned, the initialization file must exist in the same
directory containing the EXE. Subsequent scripts can exist in
any directory. }
ExitDoor(0);
{ We HIGHLY suggest ending your door with this procedure. ExitDoor
cleans up after the program. Among other things, it resets the
video card to the original mode detected at startup, resets the
text color to lightgray over black, etc. The single parameter is
the desired errorlevel to return to DOS.
Don't worry too much if you forget to run this procedure. The
actual deallocation of Concerto (i.e. memory, open files, etc)
is handled by another process invisible to your door. You may
safely use HALT, although it may look ugly! }
END.